package com.gitee.xqxyxchy.provider;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.google.common.collect.Maps;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(tags = "用户服务", value = "用户服务")
@RequestMapping("/user")
@RestController
public class UserProvider {
	
	@ApiOperation(value = "用户列表", notes = "用户列表")
	@RequestMapping(value = "/query",method = RequestMethod.POST)
	public List<Map<String, Object>> query() {
		List<Map<String, Object>> result = new ArrayList<>();
		
		
		return result;
	}
	

	@ApiOperation(value = "用户明细", notes = "用户明细")
	@RequestMapping(value = "/get",method = RequestMethod.GET)
	public Map<String, Object> get(
			@ApiParam(name = "id", value = "用户ID", required = true) 
			@RequestParam(value="id", required = true) String id) {
		Map<String, Object> result = Maps.newHashMap();
		
		
		return result;
	}

}
